package org.star.dolphin.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ResponseFindPage<T> {

    private Integer code = 0;

    private Integer count;

    private List<T> data;

    private String msg;

    public ResponseFindPage(List<T> data) {
        this.data = data;
    }

    public ResponseFindPage(Integer count, List<T> data) {
        this.count = count;
        this.data = data;
    }
}
